module model.Movie;

// 电影模型
class Movie
{
    string id;
    string name;
    string url;
    string category;
    string region;
    uint year;
    string actors;
    string director;
    string intro;
    string img;
    string comment;

    this ()
    {
    }

    this (string id, string name, string url, string category, string region, uint year, string actors, string director, string intro, string img, string comment)
    {
        this.id = id;
        this.name = name;
        this.url = url;
        this.category = category;
        this.region = region;
        this.year = year;
        this.actors = actors;
        this.director = director;
        this.intro = intro;
        this.img = img;
        this.comment = comment;
    }
}

class MovieDto
{
    string id;
    string name;
    string url;
    string category;
    string region;
    uint year;
    string actors;
    string director;
    string intro;
    string img;
    string comment;

    this ()
    {
    }

    this (string id, string name, string url, string category, string region, uint year, string actors, string director, string intro, string img, string comment)
    {
        this.id = id;
        this.name = name;
        this.url = url;
        this.category = category;
        this.region = region;
        this.year = year;
        this.actors = actors;
        this.director = director;
        this.intro = intro;
        this.img = img;
        this.comment = comment;
    }
}

class MovieDtoFromCreate
{
    string id;
    string name;
    string url;
    string category;
    string region;
    uint year;
    string actors;
    string director;
    string intro;
    string img;
    string comment;

    this ()
    {
    }

    this (string id, string name, string url, string category, string region, uint year, string actors, string director, string intro, string img, string comment)
    {
        this.id = id;
        this.name = name;
        this.url = url;
        this.category = category;
        this.region = region;
        this.year = year;
        this.actors = actors;
        this.director = director;
        this.intro = intro;
        this.img = img;
        this.comment = comment;
    }
}

class MovieDtoFromUpdate
{
    string name;
    string url;
    string category;
    string region;
    uint year;
    string actors;
    string director;
    string intro;
    string img;
    string comment;

    this ()
    {
    }

    this (string name, string url, string category, string region, uint year, string actors, string director, string intro, string img, string comment)
    {
        this.name = name;
        this.url = url;
        this.category = category;
        this.region = region;
        this.year = year;
        this.actors = actors;
        this.director = director;
        this.intro = intro;
        this.img = img;
        this.comment = comment;
    }
}
